/**
 * adm
 * training class
 */
package net.homeip.manizzz.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author adm
 *
 */
@Entity
@Table(name="USER")
public class User {
	
	private long id;
	private byte role;
	private String name;
	private String surname;
	private String login;
	private String password;
	private String number;
	private String email;
	
	@Id
	@GeneratedValue
	@Column(name="IDUSER")
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	
	@Column(name="ROLE")
	/**
	 * @return the role
	 */
	
	public byte getRole() {
		return role;
	}
	/**
	 * @param role the role to set
	 */
	public void setRole(byte role) {
		this.role = role;
	}
	
	@Column(name="LOGIN")
	/**
	 * @return the login
	 */
	public String getlogin() {
		return login;
	}
	/**
	 * @param username the username to set
	 */
	public void setlogin(String login) {
		this.login = login;
	}
	
	@Column(name="PASSWORD")
	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column(name="EMAIL")
	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	
	@Column(name="NAME")
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name="SURNAME")
	/**
	 * @return the surname
	 */
	public String getSurname() {
		return surname;
	}
	/**
	 * @param surname the surname to set
	 */
	public void setSurname(String surname) {
		this.surname = surname;
		
	}
	
	@Column(name="NUMBER")
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
}
